package cn.com.ejiakanghu.service;

import com.github.pagehelper.PageHelper;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.dao.divided.LitemallGoodsAgentMapper;
import org.linlinjava.litemall.db.domain.LitemallGoods;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author huangfei
 * @create 2022-01-13 12:06
 */
@Service
public class LitemallGoodsAgentService {

    @Resource
    private LitemallGoodsAgentMapper litemallGoodsAgentMapper;

   public List<LitemallGoods> getAgedmallCustomTemplateInfoAgent(@Param("goodsId") String goodsId,Integer page, Integer limit){
       PageHelper.startPage(page, limit);
       return litemallGoodsAgentMapper.getAgedmallCustomTemplateInfoAgent(goodsId);
   }




   public List<LitemallGoods> getAgedmallCustomTemplateInfoNotAgent(@Param("goodsId") String goodsId,Integer page, Integer limit){
       PageHelper.startPage(page, limit);
       return litemallGoodsAgentMapper.getAgedmallCustomTemplateInfoAgent(goodsId);
   }

}
